Piwik\Plugins\API\Filter\DataComparisonFilter B

Total Complexity 87
Dependencies 18
Dependents 7
Total lines 550
Lines of code 331
Logical lines of code 215
Comment lines 86
Methods 21
Properties 13

Methods 21

Method Rating Maintainability Complexity Lines of code
compareChangePercents()
A
45 11 39
requestReport()
A
42 10 50
compare()
A
46 10 38
__construct()
A
45 9 38
checkMultiplePeriodCompare()
S
59 6 15
formatComparisonTables()
S
55 5 20
getReportsToCompare()
S
56 5 18
getMetadataFromModifiedParams()
S
56 4 16
getSegmentNameFromReport()
S
59 4 16
computeChangePercent()
S
65 5 8
isCompareParamsPresent()
S
70 3 5
checkComparisonLimit()
S
72 2 5
isRequestMultiplePeriod()
S
66 2 8
getIndividualComparisonRowIndices()
S
69 2 6
getComparisonSeriesIndex()
S
74 2 4
getColumnMappings()
S
64 2 10
getPrettyComparisonLabelFromSeriesIndex()
S
61 1 11
getComparisonSeriesLabelSuffixFromParts()
S
67 1 8
getCompareSegments()
S
69 1 6
getComparePeriods()
S
70 1 5
getCompareDates()
S
70 1 5